// @ts-ignore
import { request } from '@/request/request';

/**
 * 获取banner.
 * @param data
 */
export const getBanner = (data: any): Promise<any> => {
    return request({ url: '/cms/banner', data, method: 'GET' })
}

/**
 * 获取公告.
 * @param data
 */
export const getNotice = (data:any): Promise<any> => {
    return request({ url: '/cms/notice', data, method: 'GET' })
}


/**
 * 首页分类.
 * @param data
 */
export const getHomeDepartments = (data:any): Promise<any> => {
    return request({ url: '/cms/getHomeDepartments', data, method: 'GET' })
}
